<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div class='app-container'>
    <el-row>
      <el-col :span='22' :xs='24'>
        <el-form ref="form" :model="quo" :rules="rules" label-width="100px" id="mvcfm">
          <el-button @click="gotoPage('9A8ADF738E1C4A0181EC36BB65687E7A?'+vueparams+'')" type='success' size="mini"><i class='fa fa-edit'></i>修改</el-button>
          <div class="form-unit">
            <span class="mvc-title-left"> 报价明细 </span>
          </div>
          <div>
            <el-row>
              <el-col :span="12">
                <el-form-item label="客户" prop="">
                  {{quo.quo_client}}
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="主题" prop="">
                  {{quo.quo_theme}}
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="客户等级" prop="">
                  {{empty}}
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="联系人" prop="">
                  {{quo.quo_contact}}
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="电子邮件地址" prop="">
                  {{quo.quo_email}}
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="电话号码" prop="">
                  {{quo.quo_phone}}
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="传真号" prop="">
                  {{quo.quo_fax}}
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="24">
                <el-form-item label="地址" prop="">
                  <div style="white-space: pre-wrap;">{{quo.quo_address}}</div>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="商机" prop="">
                  {{quo.quo_predict}}
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="送货" prop="">
                  {{empty}}
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="状态" prop="">
                  {{empty}}
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="失效日期 " prop="">
                  {{quo.quo_faildate}}
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="24">
                <el-form-item label="内部备注" prop="">
                  <div style="white-space: pre-wrap;">{{quo.quo_insides}}</div>
                </el-form-item>
              </el-col>
            </el-row>
          </div>
          <div class="form-unit">
            <span class="mvc-title-left"> 列表条目 </span>
          </div>
          <el-table :data="pum">
            <el-table-column label="操作" align="center" width='100' type=''>
              <template slot-scope="scope">
                <el-dropdown trigger="click">
                  <span class="el-dropdown-link">操作<i class="el-icon-arrow-down el-icon--right"></i></span>
                  <el-dropdown-menu slot="dropdown">
                    <el-dropdown-item>
                      <el-link @click="gotoPage('9A8ADF738E1C4A0181EC36BB65687E7A?'+vueparams+'')">修改</el-link>
                    </el-dropdown-item>
                    <el-dropdown-item>
                      <el-link @click="gotoPage(''+vueparams+'')">克隆</el-link>
                    </el-dropdown-item>
                    <el-dropdown-item>
                      <el-link @click="gotoPage(''+vueparams+'')">移除</el-link>
                    </el-dropdown-item>
                  </el-dropdown-menu>
                </el-dropdown>
              </template>
            </el-table-column>
            <el-table-column label="序号" prop="">
            </el-table-column>
            <el-table-column label="产品条形码" prop="product_barcode">
              <template slot-scope="scope">
                <el-link @click="gotoPage('9A8ADF738E1C4A0181EC36BB65687E7A?'+vueparams+'')" type='primary'>{{scope.row['']}}</el-link>
              </template>
            </el-table-column>
            <el-table-column label="产品名称" prop="pronum_prodece">
            </el-table-column>
            <el-table-column label="产品型号" prop="product_model">
            </el-table-column>
            <el-table-column label="产品规格" prop="product_norm">
            </el-table-column>
            <el-table-column label="生产厂家" prop="">
            </el-table-column>
            <el-table-column label="补充" prop="product_simpledes">
            </el-table-column>
            <el-table-column label="简要描述" prop="product_des">
            </el-table-column>
            <el-table-column label="数量" prop="pronum_no">
            </el-table-column>
            <el-table-column label="单价" prop="pronum_price">
            </el-table-column>
            <el-table-column label="发货时间" prop="">
            </el-table-column>
          </el-table>
          <el-button @click="gotoPage('3C59F11A00534D1789CB9BD447E03483?&cpopup=reload'+vueparams+'')" type='primary' size="mini">选择</el-button>
          <el-button @click="gotoPage(''+vueparams+'')" type='primary' size="mini">建立</el-button>
          <div class="form-unit">
            <span class="mvc-title-left"> 甲乙双方责任 </span>
          </div>
          <el-table :data="s_duty">
            <el-table-column label="操作" align="center" width='100' type=''>
              <template slot-scope="scope">
                <el-dropdown trigger="click">
                  <span class="el-dropdown-link">操作<i class="el-icon-arrow-down el-icon--right"></i></span>
                  <el-dropdown-menu slot="dropdown">
                    <el-dropdown-item>
                      <el-link @click="gotoPage(''+vueparams+'')">移除</el-link>
                    </el-dropdown-item>
                  </el-dropdown-menu>
                </el-dropdown>
              </template>
            </el-table-column>
            <el-table-column label="备注" prop="description">
            </el-table-column>
            <el-table-column label="建立" prop="">
              <template slot-scope="scope">
              </template>
            </el-table-column>
          </el-table>
          <el-button @click="gotoPage('13F092E981E2421D8EB7789CD825A57C?&cpopup=reload'+vueparams+'')" type='primary' size="mini">选择</el-button>
          <div class="form-unit">
            <span class="mvc-title-left"> 付款方式 </span>
          </div>
          <el-table :data="s_pay">
            <el-table-column label="首次付款" prop="pay_first">
            </el-table-column>
            <el-table-column label="二次付款" prop="pay_sec">
            </el-table-column>
            <el-table-column label="尾付款" prop="pay_end">
            </el-table-column>
          </el-table>
          <el-button @click="gotoPage('AF3A32935B2349AE8D77A9FA6F183194?&cpopup=reload'+vueparams+'')" type='primary' size="mini">建立</el-button>
          <div class="form-unit">
            <span class="mvc-title-left"> 付款账号 </span>
          </div>
          <el-table>
            <el-table-column label="操作" align="center" width='100' type=''>
              <template slot-scope="scope">
                <el-dropdown trigger="click">
                  <span class="el-dropdown-link">操作<i class="el-icon-arrow-down el-icon--right"></i></span>
                  <el-dropdown-menu slot="dropdown">
                    <el-dropdown-item>
                      <el-link @click="gotoPage(''+vueparams+'')">修改</el-link>
                    </el-dropdown-item>
                    <el-dropdown-item>
                      <el-link @click="gotoPage(''+vueparams+'')">克隆</el-link>
                    </el-dropdown-item>
                    <el-dropdown-item>
                      <el-link @click="gotoPage(''+vueparams+'')">移除</el-link>
                    </el-dropdown-item>
                  </el-dropdown-menu>
                </el-dropdown>
              </template>
            </el-table-column>
            <el-table-column label="备注" prop="">
            </el-table-column>
          </el-table>
          <el-button @click="gotoPage('D7392C52C43441FE90F4372C6C4B7060?&cpopup=reload'+vueparams+'')" type='primary' size="mini">选择</el-button>
          <el-button @click="gotoPage(''+vueparams+'')" type='primary' size="mini">建立</el-button>
          <div class="form-unit">
            <span class="mvc-title-left"> 违约责任 </span>
          </div>
          <el-table :data="s_breakduty">
            <el-table-column label="操作" align="center" width='100' type=''>
              <template slot-scope="scope">
                <el-dropdown trigger="click">
                  <span class="el-dropdown-link">操作<i class="el-icon-arrow-down el-icon--right"></i></span>
                  <el-dropdown-menu slot="dropdown">
                    <el-dropdown-item>
                      <el-link @click="gotoPage(''+vueparams+'')">修改</el-link>
                    </el-dropdown-item>
                    <el-dropdown-item>
                      <el-link @click="gotoPage(''+vueparams+'')">克隆</el-link>
                    </el-dropdown-item>
                    <el-dropdown-item>
                      <el-link @click="gotoPage(''+vueparams+'')">移除</el-link>
                    </el-dropdown-item>
                  </el-dropdown-menu>
                </el-dropdown>
              </template>
            </el-table-column>
            <el-table-column label="备注" prop="description">
            </el-table-column>
          </el-table>
          <el-button @click="gotoPage('7D6EDCA548E24CF0AEFD01021E89BFEA?&cpopup=reload'+vueparams+'')" type='primary' size="mini">选择</el-button>
          <el-button @click="gotoPage(''+vueparams+'')" type='primary' size="mini">建立</el-button>
          <div class="form-unit">
            <span class="mvc-title-left"> 其他要求 </span>
          </div>
          <el-table :data="s_demand">
            <el-table-column label="操作" align="center" width='100' type=''>
              <template slot-scope="scope">
                <el-dropdown trigger="click">
                  <span class="el-dropdown-link">操作<i class="el-icon-arrow-down el-icon--right"></i></span>
                  <el-dropdown-menu slot="dropdown">
                    <el-dropdown-item>
                      <el-link @click="gotoPage(''+vueparams+'')">修改</el-link>
                    </el-dropdown-item>
                    <el-dropdown-item>
                      <el-link @click="gotoPage(''+vueparams+'')">克隆</el-link>
                    </el-dropdown-item>
                    <el-dropdown-item>
                      <el-link @click="gotoPage(''+vueparams+'')">移除</el-link>
                    </el-dropdown-item>
                  </el-dropdown-menu>
                </el-dropdown>
              </template>
            </el-table-column>
            <el-table-column label="备注" prop="description">
            </el-table-column>
          </el-table>
          <el-button @click="gotoPage('A2DB4182541E4D78B28BCC52A522D64F?&cpopup=reload'+vueparams+'')" type='primary' size="mini">选择</el-button>
          <el-button @click="gotoPage(''+vueparams+'')" type='primary' size="mini">建立</el-button>
        </el-form>
      </el-col>
      <el-col :span='2' :xs='24'>
        <el-menu default-active='active' class='menu-unit'>
          <el-menu-item v-for='item in Container'>
            <el-link @click="gotoMenu(item.url)" :type="'产品报价'===item.name?'primary':'default'">{{item.page_desc||item.name}}</el-link>
          </el-menu-item>
        </el-menu>
      </el-col>
    </el-row>
  </div>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'ProductOfferSupp',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        quo: {
          quo_client: null,
          quo_theme: null,
          quo_contact: null,
          quo_email: null,
          quo_phone: null,
          quo_fax: null,
          quo_address: null,
          quo_predict: null,
          quo_faildate: null,
          quo_insides: null,
        },
        pum: [],
        s_duty: [],
        s_pay: [],
        s_breakduty: [],
        s_demand: [],
        loading: false,
        Container: null,
        rules: {}
      }
    },
    created() {
      this.getData();
      this.loadContainerMenu({
        pid: "80299289AF2443B18EA545A4C0C37170",
        name: "客户管理右菜单",
        selected: "产品报价"
      }, 'Container', this.vueparams);
    },
    updated() {},
    mounted() {},
    methods: {
      getData() {
        request({
          method: 'get',
          url: '/xcapi/VUEAction/psi/supplychainmana/SupplierCtrl/productOfferSupp?' + this.vueparams,
        }).then(data => {
          for (var k in data) {
            if (Array.isArray(data[k])) {
              this[k] = data[k];
            } else {
              $.extend(this[k], data[k]);
            }
          }
        })
      },
    },
  }
</script>
